/*
 * Copyright (c) 2019 Author: Fancyears Milos Malvis @1243093366@qq.com
 * ALL COPYRIGHT REVERSED.
 */

package com.fancyears.dao.i.user;

import com.fancyears.dao.MyBatisBaseDao;
import com.fancyears.model.user.User;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

/**
 * 用户基础dao层，用于用户的基本增删改查操作
 *
 * @Author: Fancyears Milos Malvis
 * @Date: Created in  2019/5/8 13:29
 * @Modified By:
 */
@Repository
public interface UserDao extends MyBatisBaseDao<User, Long, Object> {

    User selectByNameAndPsw(User u);

    User selectByAccountName(@Param("username") String username);

    /**
     * 更新用户密码
     * @param user
     * @return
     */
    int updatePassword(User user);
}